﻿using Kaleida.ServiceMonitor.Model.Runtime;
using Kaleida.ServiceMonitor.Operations.PreparedRequests;
using Kaleida.ServiceMonitor.Operations.ResponseHandlers;
using NUnit.Framework;

namespace Kaleida.UnitTests.Model.Runtime
{
    [TestFixture]
    public class OperationTests
    {
        [Test]
        public void TestDescription()
        {
            Assert.AreEqual("Fetch content from 'http://www.example.com' using HTTP GET and log response", new Operation(new HttpGet("http://www.example.com"), new LogResponse()).Description);
            Assert.AreEqual("Fetch content from 'http://www.example.com' using HTTP GET", new Operation(new HttpGet("http://www.example.com"), new DoNothing()).Description);
        }
    }
}
